package com.c3w.synchro.common.validation.event;

import com.c3w.synchro.common.validation.ValidationResult;

/**
 * User: P. Lalonde
 * Date: 12-05-30
 */
public class ValidationFailedException extends Exception {
    private final ValidationResult result;

    public ValidationFailedException(ValidationResult result) {
        super();

        this.result = result;
    }

    public ValidationResult getResult() {
        return result;
    }

    @Override
    public String toString() {
        return "ValidationFailedException{" +
                "result=" + result +
                '}';
    }
}
